
# WTF Editor Main

from WtfEngine import *;
import WtfGui;
import Simulation;

## Main menu
gMenu = 0;


def Main(vArg):
	# Push a fresh game state
	Kernel.GetInst().PopGameState();
	gst = Kernel.GetInst().ForkGameState(GameState());
	menu = Simulation.GameMenu();

	hud = Simulation.Interface();
	hud.Init();
	
	sel = ObjectSelection();
	mv = ObjectMoveTool(sel);
	sel.Init();
	mv.Init();
	
	menu.BindToEvent(KeyDownEvent(InputKey(27,0)));
	


